package cn.tedu.account.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/*封装账户的数据*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)

public class Account {

    private Long id;
    private Long userId;
    private BigDecimal total; // double 不精确 bigdecimal 可以精确的表示数据
    private BigDecimal used;
    private BigDecimal residue;
    private BigDecimal frozen;
}
